package com.funny.test.factorybean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author fanxiao  2021/11/18
 * @since 1.0.0
 */
@Configuration
public class AppConfig {


	@Bean(name = "tool")
	public ToolFactory toolFactory() {
		return new ToolFactory();
	}


	@Bean
	public Tool tool() throws Exception {
		return toolFactory().getObject();
	}
}
